package com.sc.nft.feign;

import com.sc.nft.dto.IdRequest;
import com.sc.nft.dto.MerchantEnterpriseQualificationAuditDTO;
import com.sc.nft.sup.PageRequest;
import com.sc.nft.sup.PageResult;
import com.sc.nft.sup.Result;
import com.sc.nft.vo.MerchantEnterpriseQualificationDetailsVO;
import com.sc.nft.vo.MerchantEnterpriseQualificationPageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "nft-commercial", path = "/commercial/merchantEnterpriseQualification")
public interface MerchantEnterpriseQualificationClient {

    /**
     * 获取审核列表
     *
     * @param pageRequest
     * @return
     */
    @PostMapping("/page")
    PageResult<MerchantEnterpriseQualificationPageVO> page(@RequestBody PageRequest pageRequest);

    /**
     * 根据id获取资质审核详情
     *
     * @param idRequest
     * @return
     */
    @PostMapping("/getById")
    Result<MerchantEnterpriseQualificationDetailsVO> getById(@RequestBody IdRequest idRequest);

    /**
     * 审核
     *
     * @param merchantEnterpriseQualificationAuditDTO
     * @return
     */
    @PostMapping("/audit")
    Result audit(@RequestBody MerchantEnterpriseQualificationAuditDTO merchantEnterpriseQualificationAuditDTO);

}
